//
//  AskingData.m
//  UIWebView
//
//  Created by dllo on 16/09/19
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "AskingData.h"
#import "AskingDatalist.h"

@implementation AskingData

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"datalist"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AskingDatalist *detalist = [AskingDatalist modelWithDic:dic];
            [arr addObject:detalist];
        }
        _datalist = arr;
    }
}
@end
